package com.zhengyisky.feign;

import com.zhengyisky.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "service-user", fallback = UserClientFallback.class)
public interface UserClient {

    @GetMapping("/user/getInfo")
    User getInfo(@RequestParam(value = "token") String token);

}
